package com.acsior.hibernate.vo;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import com.acsior.dac.impl.hibernate.vo.GeneratorKey;
import com.acsior.ddfn.impl.hibernate.vo.NomElementVO;

/**
 * NomServiceSubgroup entity. @author MyEclipse Persistence Tools <b><i>powered
 * by Belev</i></b>
 */
@Entity
@Table(name = "nom_service_subgroups", uniqueConstraints = @UniqueConstraint(columnNames = "system_name"))
@GeneratorKey(tableName = "nom_service_subgroups")
public class NomServiceSubgroupVO extends NomElementVO {

	private static final long serialVersionUID = -5811795050642754546L;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "nom_service_group_id", nullable = false)
	private NomServiceGroupVO nomServiceGroup;

	/** default constructor */
	public NomServiceSubgroupVO() {
		super();
	}

	/** @return the nomServiceGroup */
	public NomServiceGroupVO getNomServiceGroup() {
		return this.nomServiceGroup;
	}

	/**
	 * @param nomServiceGroup
	 *            the nomServiceGroup to set
	 */
	public void setNomServiceGroup(NomServiceGroupVO nomServiceGroup) {
		this.nomServiceGroup = nomServiceGroup;
	}
}